package src.com.foreknow.demo6;

public class Animal {
    int age;
    String name;
    public void eat(){
        System.out.println("eat.....");
    }
    public void sleep(){
        System.out.println("sleep....");
    }

    public static void main(String[] args) {
        Animal a = new Animal();
        a.age=8;
        a.name="tom";
        System.out.println(a.name +"---"+a.age );
        a.eat();
        a.sleep();

    }

}
